<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SWM34S_LVGL7.11_SWMUI: C:/Users/DELL/Desktop/Commit/lvgl/SWM34S_LVGL7.11_SWMUI_20230515/APP/USB/Device/hid_transfer.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SWM34S_LVGL7.11_SWMUI<span id="projectnumber">&#160;V7.9</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.5 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_0ca16891106f5a3e9ad635a0d6c5f98f.html">APP</a></li><li class="navelem"><a class="el" href="dir_688c5dfbd99f3a5435dc860226c47105.html">USB</a></li><li class="navelem"><a class="el" href="dir_0cccf70620b7ab69b712eb5bd1705234.html">Device</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle"><div class="title">hid_transfer.h</div></div>
</div><!--header-->
<div class="contents">
<a href="hid__transfer_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="preprocessor">#ifndef __HID_TRANSFER_H__</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span><span class="preprocessor">#define __HID_TRANSFER_H__</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span> </div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="preprocessor">#include &lt;stdint.h&gt;</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span> </div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"><a class="line" href="hid__transfer_8h.html#ac5251397ce2246b546b472cd802e6d62">    6</a></span><span class="preprocessor">#define USBD_VID    0x0417</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"><a class="line" href="hid__transfer_8h.html#a287c940e33c18a7f0fda473a8f15b0d0">    7</a></span><span class="preprocessor">#define USBD_PID    0x5020</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span> </div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span> </div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"><a class="line" href="hid__transfer_8h.html#a44677a67e07421e9c150b320d3a17b60">   10</a></span><span class="preprocessor">#define EP_INT_IN_NUM       1</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"><a class="line" href="hid__transfer_8h.html#a34cbf01a6f0c103001e248d0048f4271">   11</a></span><span class="preprocessor">#define EP_INT_OUT_NUM      1</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span> </div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"><a class="line" href="hid__transfer_8h.html#a5162db480d212170c08d3d940d87be57">   13</a></span><span class="preprocessor">#define EP_CTRL_PKSZ        64</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"><a class="line" href="hid__transfer_8h.html#a775207d15e87136af161c9931a1bba30">   14</a></span><span class="preprocessor">#define EP_INT_IN_PKSZ      64</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"><a class="line" href="hid__transfer_8h.html#ae37a8cb8c6766fdeecad80e01bb6c2ef">   15</a></span><span class="preprocessor">#define EP_INT_OUT_PKSZ     64</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span> </div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span> </div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span><span class="comment">/* Define Descriptor information */</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"><a class="line" href="hid__transfer_8h.html#a07065dc40f090f051dd1dd6d5901930a">   19</a></span><span class="preprocessor">#define USBD_SELF_POWERED   0</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"><a class="line" href="hid__transfer_8h.html#a33eb2c20ffb183eff71549bfc6279e36">   20</a></span><span class="preprocessor">#define USBD_REMOTE_WAKEUP  0</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"><a class="line" href="hid__transfer_8h.html#af89b852ee3c28c34c213f8ce6dd7f788">   21</a></span><span class="preprocessor">#define USBD_MAX_POWER      50  </span><span class="comment">// 50 * 2mA = 100mA</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span> </div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span> </div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span><span class="keywordtype">void</span> <a class="code hl_function" href="hid__transfer_8h.html#a28c78e9b5f304ea02d5fedb860c1f2a0">HID_Init</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span><span class="keywordtype">void</span> <a class="code hl_function" href="hid__transfer_8h.html#adffdde818b1153ca2044e26f0174df07">HID_ClassRequest</a>(USB_Setup_Packet_t * pSetup);</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span> </div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span><span class="keywordtype">void</span> <a class="code hl_function" href="hid__transfer_8h.html#ae28fc8c45009e1e193559f7d7ce00944">HID_SetInReport</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span><span class="keywordtype">void</span> <a class="code hl_function" href="hid__transfer_8h.html#a1f0694c282d36e7b191621ebd4be1c6d">HID_GetOutReport</a>(uint8_t *buf, uint32_t u32Size);</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span> </div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span> </div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span><span class="preprocessor">#endif</span></div>
<div class="ttc" id="ahid__transfer_8h_html_a1f0694c282d36e7b191621ebd4be1c6d"><div class="ttname"><a href="hid__transfer_8h.html#a1f0694c282d36e7b191621ebd4be1c6d">HID_GetOutReport</a></div><div class="ttdeci">void HID_GetOutReport(uint8_t *buf, uint32_t u32Size)</div><div class="ttdef"><b>Definition:</b> <a href="hid__transfer_8c_source.html#l00237">hid_transfer.c:237</a></div></div>
<div class="ttc" id="ahid__transfer_8h_html_a28c78e9b5f304ea02d5fedb860c1f2a0"><div class="ttname"><a href="hid__transfer_8h.html#a28c78e9b5f304ea02d5fedb860c1f2a0">HID_Init</a></div><div class="ttdeci">void HID_Init(void)</div><div class="ttdef"><b>Definition:</b> <a href="hid__transfer_8c_source.html#l00011">hid_transfer.c:11</a></div></div>
<div class="ttc" id="ahid__transfer_8h_html_adffdde818b1153ca2044e26f0174df07"><div class="ttname"><a href="hid__transfer_8h.html#adffdde818b1153ca2044e26f0174df07">HID_ClassRequest</a></div><div class="ttdeci">void HID_ClassRequest(USB_Setup_Packet_t *pSetup)</div><div class="ttdef"><b>Definition:</b> <a href="hid__transfer_8c_source.html#l00091">hid_transfer.c:91</a></div></div>
<div class="ttc" id="ahid__transfer_8h_html_ae28fc8c45009e1e193559f7d7ce00944"><div class="ttname"><a href="hid__transfer_8h.html#ae28fc8c45009e1e193559f7d7ce00944">HID_SetInReport</a></div><div class="ttdeci">void HID_SetInReport(void)</div><div class="ttdef"><b>Definition:</b> <a href="hid__transfer_8c_source.html#l00261">hid_transfer.c:261</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
</small></address>
</body>
</html>
